/**
 * 
 */
package com.novasoftware.novagooglemap.db;

import org.json.JSONException;
import org.json.JSONObject;

import com.novasoftware.novagooglemap.infrastructure.entity.BaseEntity;

import android.content.ContentValues;
import android.database.Cursor;


public interface DataBaseBuilder<TEntity extends BaseEntity> {
	
	public abstract String getRoot();
	
	public abstract void setRoot(String root);
	
	public abstract TEntity build(Cursor query);
	
	public abstract ContentValues deconstruct(TEntity entity);
	
	public abstract String table();
	
	public abstract TEntity jsonBuild(JSONObject jsonObject) throws JSONException;
}
